package br.org.credfaz.sis.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.org.credfaz.sis.dao.TceTelefoneClienteDAO;
import br.org.credfaz.sis.modelo.TceTelefoneCliente;

public class AtualizaTceTelefoneClienteAction {
	
private List<TceTelefoneCliente> telefones;
	
	@Action(value="atualizaTelefone", results= {
			@Result(name="ok", type="redirectAction", params= {"actionName", "atualizaTrabalha"})
	})
	public String execute(){
		telefones = new TceTelefoneClienteDAO().lista();
		return "ok";
	}
	public List<TceTelefoneCliente> getTceTelefoneClientes(){
		return telefones;
	}

}
